Yes, both are correct in one sense- Recieving something you bought.
However you should be aware that
we have a phrase in English - "You get what you pay for"
This means the the price of something is usually directly related to it's quality.
So, in another sense, if you "didn't get what you paid for" it could mean that you paid a high price for a low quality item.