Fever while pregnant

Is it ok or should I be going to the hospital? Im getting worried since online says it can harm the baby.