Yes or no. It depends to what extent you borked things. If you were root when you did all this and you made enough changes that you wuoldnt be able to remember them all and/or you dont know what the original permissions were, it seems like the most prudent thing to do would be reinstall. I only say this because, sure, you could get it all working again but you may not have something properly set therefore leaving you unsecured.
The only way to restore to original would be if you had a proper backup, proper meaning a backup done with a tool that preserves all file permissions.
If you want to get root working again, get a copy of Knoppix or the like and start there.
Good luck. There is no better way to learn than from your mistakes.
Mike
$whatis microsoft
microsoft: nothing appropriate