Can I use a junction box to splice together wires that are on a different circuit?
You can have multiple circuits in the same box so long as you do not overload the volume of the box with devices and wires.

See this answer by @Tester101 that discusses box volume.