While sunscreen helps to protect the skin from harmful UV rays, it does not completely block all UV radiation. Therefore, it is still possible to get a tan while wearing sunscreen. However, the level of tanning can be reduced compared to unprotected sun exposure. You should note that a tan is a sign of skin damage, and excessive exposure to UV radiation can increase the risk of skin cancer. Thus, it's advisable to use sunscreen alongside other sun protection measures to minimize sun damage.