Can i do plumbing in my own house?

Can I do plumbing work in my own house, or are there rules I need to follow?