Switching a Computer

Is it possible to switch an old computer from XP to a Linux OS that would be updated enough to use the internet? I don't really know much about Linux or how to switch OS but I am still hanging onto my old XP just in case it can be made usable again.