There is no single answer to this question. When a casino wants to offer you a cashback bonus, they’ll let you know special conditions if there is any, or you’ll find the information about the promotion on their site.
You’ll need to follow the steps explained in the promotion to get involved, but most of the time, you will only need to play during the promotion period.