Answer: There are a variety of ways you can publish but assuming you're meaning going the traditional route, getting your book picked up by a commercial publishing house, small press, or other type of media where you have to submit and wait for an approval, the odds are, unfortunately, stacked against you.
By this I only mean that the number of writers out there who strive to be published are in the millions. Agents and publishers receive thousands of queries a year (some receive thousands a month!) and you are just one dot among them. That's not to say you aren't talented or good, it's simply that the odds that you'll pop onto the scene and be an instant hit is not a feasible expectation to have.
You increase your odds by learning more about your craft and the business part of it. You increase your odds by being consistent and persistent. This is a cut throat business that can easily wear you down if you let it. For more information, consult this post: How do I publish my novel?