Should he still be liable for child support?

If a man pays a independent prostitute/ sex worker for sexual intercourse and she becomes pregnant should he be liable for child support?

Protected sex but birth control failed