Yes, to retain the moisture of the sand, you can topsoil the sand with loamy soil and compost. The mixture should be spread with an amount of 2 inches over the sand. Further, it can be worked 6 inches deeper inside with the help of a rake.