Need more info
I would hazard a guess yes, but you don't provide much information.
There are very few circumstances where you absolutely can't exercise
. Do you have any specific health ailments? If so, what? Remember, being active is key to optimizing your physical and mental health, but some of us do have to modulate how hard and what we do based on physical limitations.