I believe that animals have very good memories about certain things, especially who their owners are. When I was in college I was only able to see my horse a handful times a year. She always remembered who I was.
Stewie will definitely remember you. As far as the potty training, December is a ways off yet, so it will be even more ingrained in him by them.