No. Neither Sonic nor Knuckles is portrayed as being in a relationship with the other in the games — they are rivals who occasionally team up, and that is the extent of it.