You can, but it is a special version of the ethernet cable called a "crossover" cable.
It has the same number of conductors and the connectors look the same, but a pair of the conductors are "crossed over" to enable peer to peer connection.
Just go to a retailer's website and search for 'crossover cable' or a 'crossover adapter'.