Is it ok to take medicine on an empty stomach? Medicine such as acetaminophen and ibuprofen.

Yes/No. Some should and others shouldn't. Refer to the prescription or ask your pharmacist.
Some yes and no. It depends on the medicine. There are instructions on each bootle or box. Some are improved with food and some are not absorbed well. You have to read the labels. Very good question.