Depending on your knowledge, experience, and relevant skills, almost every job can be done from home.
What you need is a solid computer or laptop, a stable internet connection, and an excellent online presence. By online presence, we mean having a profile that would attract clients, a portfolio listing all your work, and a solid strategy to gain new clients and keep them in the long run.
The only drawback is that when it comes to creating and implementing digital marketing strategies, you can’t receive the same feedback (both positive and negative) that you would have gotten from clients if you were in an office or via live communication.