Using the star and space brush presets you can quickly paint a starfield and animate flying through it.
Paint Effects paints the strokes on the view plane at the depth determined when you clicked in the scene to start the stroke. If you start your stroke near the front of the grid plane of the perspective view, the stars will be very close. If you start your stroke near the back of the grid plane of the perspective view, the stars will be very far.