Maybe, without knowing any details about how you want to use it everyone would be guessing. What I don’t want to do is just say No, because there could be another option.
A picture of the glasses could be useful. Items for swimming come in a lot of designs.
With products like these what you have matters https://www.amazon.com/DMEIHUA-Professional-Underwater-Swimming-Goggles/dp/B0B3HH7X5L/ref=sr_1_7?keywords=goggles+for+gopro&qid=1661221549&sr=8-7