Egg factors are determined as soon as you deposit your Pokemon, so yes.
-If you had the egg when you saved, hatch dat egg
-If you picked it up after saving, pick it up immediately.
-If you saved, then picked up multiple eggs before collecting the one that was shiny, pick up those eggs first.
-If you saved before depositing the Pokemon, DO NOT RESET