Yes, you can publish your work instead of protecting it with patents. It is
important to note that publishing your work does not provide you with the same
exclusive rights and legal enforcement that a patent does. If you publish your work,
anyone is free to copy and use it without your permission. It is good if you want to
share your knowledge with the world and advance scientific progress. However, it is
not appropriate if you want to commercialize your work or protect it from being
copied by competitors.
The decision of whether to publish or patent your work is a complex one that depends
on a variety of factors, including your specific circumstances and goals, the
competitive landscape, and the nature of your work.
For more details, you can read our blog
here.