Yes both ibuprofen and paracetamol can safely be taken together without any problems.
You can either take ibuprofen and paracetamol at the same time together or you can take them both spaced apart.
When you take Ibuprofen it's best to take Ibuprofen on a full stomach so it's best to eat breakfast or a meal and then take the Ibuprofen.
Ibuprofen can be taken on an empty stomach but the Ibuprofen works best when you have a full stomach or at least have some food in your stomach.
So it's best to eat something before taking the Ibuprofen.
But just make sure you take the recommended dosage of ibuprofen and paracetamol but don't take too much of it or any medicine as you can overdose which can be deadly or harmful to your health.