Yes. But for night photography you don't need an expensive DSLR like this. A D3400 costing you less than $400, can easily do the job. You should be spending money on good lenses, because you would need to pick a fast lens with less comas. My recommendations are
- Tokina 11-16 2.8 (for Nikon DX camera)
- Nikon 20mm 1.8 G (for FX camera)