Yes, in general the quality of an answer is still measured by votes and is not affected by its acceptance status.
As others have pointed out in the comments, the actual details of the quality-ranking algorithm are intentionally undocumented to prevent people from attempting to game the system. Knowing that acceptance overrode the vote score provides an example of how someone might game the system by simply having their friends accept their answers. These types of shenanigans are certainly possible with voting, too, but they're (slightly) easier to detect, and more importantly, the larger community can override the opinions of a few friends. Each account only gets one vote. A single accept should not outrule the general voice of the community.
Also, it is an extremely unusual circumstance where an answer is heavily downvoted, yet has been accepted by the asker. That in itself points to possible abuse and/or fraud, so the system certainly wouldn't want to ignore it. The only time this might reasonably happen is if someone asked for help on implementing something following bad practices, and you posted the answer they were looking for. The person who asked the question would accept it, but the community would roundly downvote it, because it's encouraging poor practices. If this happens to you frequently enough that it would matter to an algorithm, you are probably not one of our more valuable contributors.
In this particular case, as has also already been pointed out by commenters, you answered an extremely poor question (actually, you answered a question that wasn't even a question). Please don't do that. Questions like that should be downvoted and flagged/closed, instead. By answering them, you are only contributing to the problem. There are a number of users who are committed to sending this message by downvoting such answers. Putting aside the merits of that approach, they do exist, and by enabling help vampires, you are subjecting yourself to their ire. Escape the problem entirely by only answering reasonable questions. Your answers are more likely to get noticed, and more likely to get upvotes.
Speaking generally, excessive hand-wringing about the possibility of an answer ban is not productive. If you are teetering on the edge, don't push it. Spend your time focused only on writing high-quality answers to reasonable questions. If you have built up a record of quality answers and are clearly a valuable contributor to the site, you are not in danger of getting answer banned. You don't have to worry about one or two poorly-received answers. These bans are only in place to prevent excessively low-quality contributions from getting into the system. They're not meant to trip up legitimate users.