You can definitely publish outside academia. I assume you mean in scholarly journals specifically, and are questioning whether or not you need the backing or credentials of an educational institution to get past the gatekeepers—you can. It's just that, outside academia, where publishing is kind of a job requirement, there's not as much incentive to do so, and you may not always be allowed to do so by your employer.