Mirgraines during pregnancy...

Long story short, I'm 15weeks pregnant and have currently fighting a severe migraine I've been trying to treat with TYLENOL I went to the doctor and he prescribed this medicine listed below.  I'm super nervous to take it because it's a category c drug for pregnancy. But I'm also worried I'll end up back in the hospital because back in September I was hospitalized for a complex migraine. Has anyone else taken this while pregnant?