Riding a motorcycle is considered a low-risk activity and so it is usually permitted. However, this may vary depending on any medical conditions you have and your applicable driving laws, so do consult your doctor first.