If you cancel your plan, it will remain active until the end of your billing cycle, making sure that you retain full access to the plan you've paid for for the entire billing cycle.
If you cancel your plan while on a paid plan, you will automatically be moved to the Free plan when your plan expires, unless otherwise agreed.