I don't think that's true: https://time.com/5752454/blue-light-sleep/
This is a pet peeve of mine precisely because of the first line in that article:
> It’s become a virtually unchallenged piece of conventional wisdom that exposure to blue light—the type emitted by electronic device screens—is bad for sleep.