Greetings Covid. Welcome to the forum and to Midi Guitar 2.
Thank you for saying you’re using a Behringer UCA202. With that information I was able to visit the Behringer website and download the 16 page user manual.
After looking at the UCA202 user manual it seems to me that the interface is designed to connect audio devices having consumer line outs for audio output. That would include devices like a mixer, tape deck or stereo system. That excludes guitars and turntables.
Although the manual has a diagram showing how to make a cable with a 1/4" jack on one end and a RCA jack on the other end, the expectation is the cable is used between a mixer with 1/4" TS output receptacle and one of the interface RCA inputs. Simply put, what you have will not work. A guitar requires a high impedance connection and the UCA202 doesn’t have one.
Low cost alternatives you may want to investigate include Behringer UCG102, Generic Guitar to USB interface, and my favorite the Guitar to USB cable.