Help with medications during pregnancy

I know this awhile ago, but i keep thinking it's all my fault. So March 11th I found out I was expecting, I had felt very nauseated 2 weeks before I tested. Note I had tested after I missed my period by 1 week. I have a stomach disorder that causes nausea, vomiting, and all that so I was prescribed zofran. Before I tested I had taken 3 pills, each on different days. On April 6th I had found out I had miscarried, and April 29th I had passed the baby. Could me taking the Zofran be the reason I miscarried?? I had no idea that I was even pregnant, or was I planning to be. So please no harsh comments.