Yes, to operate legally, new online casinos actually must obtain a license. There are many licensing authorities like the UK Gambling Commission, Malta Gaming Authority amongst others that give out the licenses.