Is it possible to make peer to peer?

Hey, is it possible to make a p2p network game? If it is, how can I makle it? Will TCP Sockets be a good idea, if yes, how?
Thank you for your response.