Can a standard PVC electrical box be used as a junction box?
You can do what you want, as long as...


The box remains accessible.
The box is fitted with a proper cover.


That being said, it may be more appropriate to make the splice in an existing box (assuming the box is large enough for the additional conductors).