A fever can definitely take a toll on the baby, being too hot can put the baby into stress. I agree to take some Tylenol and drink lots of water, if the fever doesn't go away then get to the hospital or call your doctor.
Headache shouldn't have any effect of baby but the fever certainly can take some Tylenol to get ur fever down and get lots of fluids