Can I take Tylenol and Benadryl?

My hips hurt like hell so I want to take Tylenol right now and I have been so damn itchy lately so I have been taking Benadryl near bedtime so I can stop itching and get some sleep so I’m wondering if I took Tylenol now if I would be okay to take Benadryl later if I needed to?