Yup that's the stuff you want. It actually melts the pipe a bit so it's all one piece when it cures, as apposed to glue which would just stick the them together and probably end up leaking or falling apart eventually. Anyway once it cures it's perfectly safe, but until then make sure you're in a...