If the rng gives you the variant you picked yes.
So if you bought purple samurai pengu 1 star then if the egg is giving you purp samu pengu it will be guaranteed 2* or 3* next
The egg doesnt guarantee you get purp samu pengu though. It will still have chances of giving you other variants but if you do get samu pengu, then you will get 2* or 3*