Giving multiple answers gives opportunity to vote on them separately and it's recommended way in case the answers are different. So as long the answers are distinct and self-contained, it's fine to do it.
For example when you've huge answer which mixes different methods and one of the proposed solution stops working or becomes outdated, as the result the whole post may got down-voted, so the other working solution will suffer. It's also easier to find the right, most voted answer.
See also: