This all on same breaker. Left, spliced wires are hot, but do nothing and there’s no switch for them.

Wires on the right are on a switch that controls two other lights closer to the breaker.

Can I just removed the splice and terminate the hot wires into a box mounted on the rafter?

i think the spliced goes to these wires, then leads somewhere else?