No code is needed for a standard pet. Go to Collect-A-Pet and pick whichever animal you want.
Premium membership pets are the exception. If you have a promotional code from a partner or a promotion, you can enter it at that point to claim one without holding a membership. Otherwise the regular pets are all freely selectable.