can ibuprofen PM be taken with Cephalexin?

my husband had been lots of pain due to abscesses, doctor's prescribed him Cephalexin, he hasn't been able to sleep well so I was gonna give him ibuprofen PM, is that safe to take with Cephalexin?