This applies if the contract is silent about notice periods and if the contract is indefinite, but if the contract or the HR policies of the organisation state otherwise then whatever is there will apply.