Yes, and it is a real risk. Many countries apply their own tests on control, exclusivity, and working hours, and will reclassify a long-term contractor as an employee.
The consequences, back social contributions, benefits, and penalties, fall on your company. An employer of record is the usual way to avoid it.