sure, this is possible, but it is not advisable.
The problem is that if you have your digital goods stored inside the site root, they can be accessed directly by a web URL to be downloaded without having purchased.
The reason for storing the digital goods outside the site root is to prevent direct access.