They can be
Usually testicular cancer
presents as a mass in the testicle that may or may not be painful.
Having a mass in the testicle may increase the chance of the testicle getting twisted around, which can be quite painful. Sometimes the pain from the mass can be referred (sort of transmitted) to where it is felt in the groin, the back, or the lower abdomen.