Urine and feces has been used as a fertilizer from the Neolithic Revolution. Human waste was collected for this purpose. Also the ammonia in urine was used to whiten fabric.
You should not use feces directly. It can contain a lot of bacteria. Best if composed a couple yrs.