Pregnancy and the flu

If I’m pregnant and have the flu should I go to the ER or can a doctor proscribe some medicine?