Are they connected between HR between different companies?

Will this company's HR deliberately go to the hr of the previous company and inquire about your past work situation