I think you are saying you have a heart problem for which you take medications and you are concerned about whether you can get pregnant while taking them?
There are quite a few medications that you can take during pregnancy. It would be wise to discuss this with both your heart doctor and your gynecologist before you decide to try getting pregnant, that way if there has to be any change in meds, for instance changing you from one to another that is safer during pregnancy, you can do this ahead of time.
I hope that answers your question. If not, please let me know. Thank you for visiting the site. Good luck to you.