Of course you can use it. For example, I usually fill raised beds with soil as well, but by the way, this can be expensive and requires a good understanding of soils and amendments. That said,raised beds are more durable than in-ground gardens, so planning for future use is important, check out
Raised Beds, Plant Stands. Some crops are not well suited to growing on ridges.