Long-term effects of codeine misuse or addiction are insomnia, nightmares, and liver damage. Therefore it is recommended to be taken only as prescribed by a medical professional. 

https://recoverypartnernetwork.com/drug/opioid/codeine-addiction