No, the hot water building code doesn’t approve PVC. It takes a lot of time to release the valve. So, it is unsafe, and you should avoid it.