You should always wear sunscreen when spending time outside, even if you plan to spend the entire time in the shade!
High-quality sun umbrellas can block up to 99% of UV rays but they’re not perfect. You also need to consider that you won’t always be directly under the umbrella or other shade structure.