Does high fever cause miscarriage or birth defects?

This is my first pregnancy and I am in my first trimester. I have a fever and wanted to know if the fever will cause a miscarriage or birth defect? Very scared at the moment and is there anything I can do to prevent something bad from happening