Only buying one set of goggles for all your swimming is possible, but ask most triathletes and they'll prefer to use seperate pairs for their open-water and indoor pool aquatics. Why? Well, although their core job is the same – to protect your eyes and enable visibility when swimming front crawl – the different conditions mean you might find a set of pool goggles serves your needs better. Good pool goggles should fit closely without leaving horrendous goggle marks, be comfortable for long training sessions and be able to stand up to dive starts, fast tumble turns and different drills without seeing any ingress.
You'll also find you can get away with smaller, more streamlined goggles in the pool as you don't need such wide visibility,