Can I publish a paper in a good journal without having an academic position?
Variants of this question have been asked many times.


No, you do not need to have an academic position or be enrolled in a university to publish in journals.
You can prevent plagiarism (or at least make it easily detectable) by posting a preprint of your paper on arXiv. This establishes that you are the first person to come up with the idea.
It's doable, but rare.