As we discussed in the response before this one, digital marketing is something that can be done by anybody, regardless of their background. You would also have the ability to build websites if you graduated with a degree in computer science.
Search engine optimization, often known as SEO, is a term used in digital marketing that helps you improve your website so that it ranks higher in Google. Therefore, it is possible to improve one's skills in digital marketing while simultaneously pursuing a career in computer science.