Yes, it is possible to see both Diagon Alley and Hogsmeade in the Wizarding World of Harry Potter in one day. You will need a one-day two-park ticket to experience all that the Wizarding World has to offer, since Diagon Alley is located in Universal Studios and Hogsmeade is located in Islands of Adventure.