Welcome to TFP!
Yes, it can work, though it is a bit more trouble. The only significant difference is that they are designed to connect to the plumbing in different ways. An above ground chlorinator will have places to clamp on hoses, while an in-ground chlorinator will have places to glue in PVC pipes. With the correct adapters, either one can be used with either kind of pool.