If you want to connect portable headphones or stand-alone, more powerful speakers to your computer you should certainly look for a computer with the connection slot for headphones.
If you don't make your choice at once later it will be necessary to buy an external sound card which is an additional expense and quite often not a very convenient solution.