It would be helpful, if not essential, to know the source of the fever
before responding to your question.
Also, do you have any other symptoms? As a general rule, if this is a viral infection, you have probably passed it on to the baby before the fever started. If due to something else, would have to know what.