It depends on the specific casino. Some casinos do not allow you to play slots for free, only for real money. And some online casinos provide both options - to play slots for free and for real money.