It's possible, but might not solve your headache. Take the Tylenol first, assuming you're >16yrs, you can take it up to 4 times 1gr/day. If this doesn't help you can add the advil 1-2hours later, with a maximum of 3x400mgr/day. If this doesn't kill the headache, consider stopping painkillers, because prolonged use can cause headache. Seek neurological advice if necessary.