Yes, it's possible to get a paper published without having a Ph.D. If you are planning to start your Ph.D., it is advised to start publishing in your bachelor's or in masters.