Pregnant and medications

I just found out I’m pregnant and I’m almost 5 weeks I’ve been taking melatonin every night along with a lot of Tylenol and propranolol for my heart.. could I have done any damage to the baby taking them while pregnant