Yes, Indomethacin can be taken for a headache.  Make sure to take it after a meal