Its entirely possible. However that may not be the only factor. It can be supplemented with other physical or mental activities. Lack of activities and focus on sex prob would lead to depression.
Yes, lack of sex can cause depression in many. However, please understand it is no physical damage. Just in case you think too much of sex & love and don’t get it at all, it can cause some psychological disorder.