They're made of plastic and nearly all the plastics you're likely to come across are aquarium safe anyway so there's no problems there.
For me, personally, the question is do these type of gimmicky things look good in an aquarium. I prefer a more natural look so i'm afraid having a multi coloured lego brick structure in my tank would never happen.
But we all have different tastes so whatever floats your boat.