Yep---
However, the anticollision lights need not be lighted when the pilot-in-command determines that, because of operating conditions, it would be in the interest of safety to turn the lights off.
14 CFR Part 91.209(b)
I used to do it all the time---the lights reflecting off the clouds can be distracting.