If you’re looking to extend the length of an RCA cable, it’s possible by using what’s known as a “female-to-female barrel connector."  This allowed the use of multiple cables between the amp and the speaker. It would probably be easier just to buy a longer cable, though!