Bitcoin first versions
If you purchased Bitcoin a long time ago, and it's on an exchange, and that exchange still exists, and you can recover your username and password to that exchange, then you should be able to transfer your money off of there.
If you used your own Bitcoin wallet software such as Bitcoin Core, then you will need to have your wallet.dat or other wallet file to recover the coins. Without this file, the coins are gone for good.