Yes, you have 1 years grace with a Class 2.
In order to exercise the privileges of a pilot licence you need a valid medical, if you don't want to exercise the privileges you can leave the medical as long as you like, there is no limit or grace period! Just renew it again when you need it!