It's not are "either or" question. You can and probably should do both. Formal education will give you the insights to understand the mathematical principles on which the profession is based.
And a couple of bootcamps will give the currently in demand techniques and tools.
It's the difference between being an "<X> programer" where X is your flavor of the month technology. And a "Software Engineer"