It can, and for a few different reasons:
Working in your bedroom can cause you to associate it with wakefulness, making it difficult to fall asleep at night.
Your normal routine is changed when you start working from home. If you’re staying indoors all day, you can miss cues for your sleep-wake cycle, such as sunlight and exercise.
Working in your home can blur the line between your personal and professional life. Some people find it hard to step away from work when their office and living space is one and the same, causing them to work longer hours.
Most people work on a computer when they’re working from home. Even sitting at a desk and browsing the web can eat up your energy, while the blue light of your screen can make it hard to fall asleep later. Checking social media can impact your sleep, as well.
You may find yourself feeling lonely when you work from home, particularly if you live alone. If your loneliness becomes depression, it can cause you to miss out on sleep.