So far I have managed to find out about it
Yes, but it's even more than that. The notice period applies from the start of the week (if under 6 months), otherwise it applies from the start of the *next* month.
However, the same also applies to them getting rid of you. If you don't like it, offer to work under a B2B contract instead where your notice period can be whatever you agree to. In practice, companies won't hold you to the 3 months - you'll be sent on gardening leave, or the contract will be terminated by mutual consent.