It's generally okay. Usually publishers only change too-similar (or identical) titles if a) there is another book with that title, or one very close to it, at that publishing house, or b) there is another book with that title at a different publishing house, but it's a very well-known book.
Keep in mind that titles are marketing devices. You don't want to get too close to other titles in your genre, or your work may be confused with another author's, and that could cause headaches for you.
If there's a book with the same title in a different genre, it's generally not an issue, as long as you're not planning to call your book, say, Twilight, or Water For Elephants, or The Help. You get the idea.