No, a fever infects your body when the virus gets into you. Overheating doesn't give you a fever, but having your body weak and exposed to germs may very easily get one.
Just make sure to stay hydrated if you are probably going to be sweating a lot :)