Fioricet during pregnancy?

Sasha
I've been having terrible migraines. I have a history of them before pregnancy. Well my Dr prescribed me fioricet and I'm scared to take it. It's class c. Anyone else taking it? Anyone take it and their baby came out fine?