Yes, you can "randomly" get freckles, meaning they can appear seemingly out of the blue, especially if you've had increased sun exposure which triggers your skin to produce more melanin, resulting in new freckles forming on areas exposed to UV rays; however, the development of freckles is largely influenced by genetics, so if you have a family history of freckles, you are more likely to develop them when exposed to sunlight.