I have a stiff neck from sleeping in a different pillow what can I do to relieve it?

I don’t normally use this pillow, I just did last night. Should I take something like Tylenol or ibuprofen?