It is generally safe to have a humidifier in the same room as a computer, but it's important to position it at a distance from the computer to prevent any potential moisture damage. Additionally, using distilled water can help minimize mineral buildup in both the humidifier and computer.