It is fine to get injected right away. There is no need for any waiting period. The potential risk are to the unborn fetus, not you, when you are pregnant.