Is buying a property on the primary market safe?

Yes, provided the developer is reliable.