IIRC, eggs in the USA and Japan are pasteurized. The egg itself is safe but the shell might have bad bacteria on it, so if you want to be safe you can just wash the egg. That said, the standard advice is to not eat uncooked foods if you have a compromised immune system or pregnant.
A good alternative might be to eat a onsen egg or softboiled egg over your rice. (Onsen egg is a softboiled egg that has been cooked at a low temperature for a long time.)