It is generally not advisable. Risks include exposure to extreme weather, predators and wild animals, disease from insects and parasites, loneliness, lack of proper shelter, potential injuries, and possible violations of local ordinances.
For your dog’s safety and well-being, provide a suitable indoor sleeping area. If your dog spends time outdoors, supervise it, protect it from the elements, and bring it inside at night or during bad weather.