Taking one pill for a few days won’t mean you never have another headache. You may need to take your migraine medicine for up to 8 weeks to see if it works before you switch to another drug.