Yes, Goodr sunglasses are generally designed to work well with hats and helmets. Their frames are lightweight and their shape is meant to stay secure during movement, so they are often a practical choice for running, cycling, and other active use. Many people find that they sit comfortably under a hat brim or a helmet without feeling bulky.
That said, the fit can depend on the specific frame style, the shape of the wearer’s head, and how snug the hat or helmet is. Some styles have a more athletic, low profile fit, while others may feel a little different with certain helmets or cap designs. If fit is especially important, it is helpful to look closely at the product details on the current web page, since frame dimensions and features can vary by style. That usually gives the best sense of whether a particular pair will work well for your setup.