Yes you are thinking of it right from what I understand… you can have a computer that ONLY runs Linux (a true Linux machine) and Ubuntu would be the distribution on it.
OR you can have a VM that runs Linux that then has Ubuntu on it…. In that case you have a computer in a computer.