Sure you can. You should be careful with whole uncracked eggs because they can/will/do explode. But as an ingredient or even to cook not a problem. Sometimes if I'm feeling my eggs are a bit old, I cook them in the microwave for the dogs. I just stir them up, personally I believe in a little water and not milk, and then cook to a soft scramble consistency. I just prefer doing it by hand with butter in the pan for me!
Should always have certain cautions about foods cooked less thoroughly, and eggs are one of those foods.