I've been writing software for ~35 years, have taken exactly one course in CS (graduate machine learning while getting my PhD in physics), and did it professionally for about 5 years… that said, "writing software" has been a big part of other jobs I've had, even if not the headline description.