Can I sell my projects or melodies and are there any regulatory agreements?

Can I sell my projects or melodies and are there any regulatory agreements?