If you're talking about the big Vancouver Aquarium, it's technically doable; it's about an hour to the Aquarium by transit (taking the Canada Line to Waterfront, and the 19 bus to Stanley Park). If you time it right, you could go there, spend 1–2 hours at the Aquarium, and still get back ~3hr before your flight.