Yes. Wizards of the Coast offers an official product called Magic: The Gathering Online (MTGO), built specifically for digital play. You can download the client from the official Wizards site, where you'll also find a tutorial to get started. New accounts begin with a small collection of core-set cards so you can jump into a game right away.
There's also third-party "virtual tabletop" software that provides the table and cards but leaves the rules to you, unlike MTGO, which enforces them automatically. If you enjoy the official program, there's a whole community ready to help you learn the ropes and expand your collection.