Automaticly enroll users once paid

Hi, i was wondering if it's possible to automaticly enroll a user to the course they've just paid for. Would be great to not have to worry about the human element in the process.

Many thanks in advance,
Marco