Depending what type of heart condition, some people with tight left main ask the same question, it's a no.
Post cardiac surgery with a mechanical valve need to check INR before vaccine. it should be around 2.
Depends on the details of the heart condition, please take a opinion from the specialist and then proceed.
Next Steps
Consult with details of the heart condition