No, it’s not rude, just informal. If you’re a non-native speaker and it’s all you can remember, no problem (also if people are younger than you, it’s in an informal setting or the people you’re talking to are friends or acquaintances). There are better solutions than ciao in other circumstances.