92 Acura Integra shifts funny

My Acura shifts back and forth between 3rd and 4th for no apparent reason. Also the P indicator won’t come on right away until it’s warmed up. Could these both be caused by the selector switch on the shifter?