Match Factory is a free to play game, however, you can still buy in-game items by using real money. If you don't want to make accidental purchases, you can edit the restrictions for purchases on your device.
You can learn more about how to avoid accidental purchases from the links below: