Yes, you can. In fact, sleeping in your car, will keep you up off the ground and dry, if there’s any rain. Also, a car is much more insulated than a tent.