You can use it, but you have little chance of getting the desired result. After all, the camera focus at night mainly does not fulfill its function. Thus, it is better to use manual focus for astrophotography.