Yes you can, but never try to boil an egg in your microwave, or cook it inside it’s shell.
The reason for this is that inside the shell is a membrane (like a thick, tough skin), which stops the steam from escaping-within a short time your egg in the microwave will become a small bomb.
Please don’t try it to see if it’s true, it’s very dangerous!
The way to cook eggs in a microwave is either poached (prick the skin with a fork first), or scrambled. Scrambled eggs cooked in a microwave come out light and fluffy.