Hydroxyzine and motrin

Are these 2 safe to give 18 month old? I think he has a the flu and I have him Tylenol and hydroxyzine ealrier but I wanted to rotate with motrin and wasn’t sure if it was safe.