Well you can use two views and move them differently to each other, but then I'd say it's much easier, just to move the moon at a different speed and move everything else with the view or so. For example, you move the whole view 20px to the right and move the moon manually another 10px to the right, thus the background scene has moved 20px while the moon moved actually 30px.
This might work for this specific example, but if you plan on doing this effect for more general cases, you'll have to develop some kind of system that separates the objects that are close and those that are far away.
If every star/planet has its own depth, it would essentially even be possible to make everything move relative to each other. You'd simply have to define some value for the furthest and closest planet/star and then interpolate the values for the different depth.