Yes. The brain makes endogenous opioids that perform a myriad of functions such as making you vomit or feel better after a broken bone.