Yes, online casino bonus codes are legal when used at licensed and regulated online casinos. However, to be sure, you can check the legality of these codes based on the jurisdiction in which you reside.