If someone uses illegal means to capture the information or if they use it to threaten the victim, yes, they can go to jail for doxxing. In some cases, the victim may be able to make an argument that the doxed information was untrue, and this could involve a libel suit, which may result in jail time.