For the most part its not a good idea to have the bearded dragon and the cat hang out together. There is far too much potential for unforeseen accidents.
However lots of cat owners also have bearded dragons and they just keep the bearded dragon away in the vivarium and keep it seeled.
Some braver owners have got the two animals tamed enough to hang out together but this is not reccomend if you’re not an experienced owner. It’s always good to be there to supervise them in this situation.
It’s not a good idea to put them together, mainly because depending on the species of snake, the snake may cause significant harm to the bearded dragon or if it is a smaller non venomous snake, it may get eaten by the bearded dragon.