Yes, you can install a toilet on your own. Installing a toilet by yourself isn’t complicated, but it depends on your level of expertise. It also depends on factors like existing drains, whether or not permits are required, or if you have to make pipeline modifications.
If you live in a rental, it’s best to call in a professional for toilet installation to avoid any issues you would be liable for.