Is food immediately taken out of the microwave safe to eat?
Yes it is completely safe. Microwaves do not linger in food. The microwaves stop as soon as your microwave stops. 

A microwave is just an electromagnetic wave similar to a radio wave, but at a higher frequency. It works by exciting molecules, particularly water, in the food and giving those molecules some of its energy as heat. 

Microwaves do not alter the structure or composition of molecules or atoms directly, which is what happens with ionizing radiation (gamma rays, x-rays, and UV-rays). You could cook your food with gamma rays, but you would ionize many of the particles making them radioactive.