Yes it is coherently normal to have the melody that the singer lays down lend hints to what the solo is going to be like, or just have the solo work around the melody the singer uses. The gradual approach as you explained is very effective, but so is a complete change in a split second.
There are no laws governing how the solo should sound in a song. Although following a few to keep a context is exceptionally adequate. An important rule with melody is it has to have a singing tune. But a singing tune from one part of the song (chorus), doesn't have to be the same or anything close to another part of the song (solo). Other factors can tie it together such as harmony, or rhyhtm. The problem is always how to go from one melodic theme to another convincingly.
Another way to hint at a change of major to minor is the supply it will some motives in a relative minor. If the harmony is running in C major, add small A blues minor licks in there. Especially when A is one of the chord tones. Even though the b3 of major and b5 of minor are the same notes. I'm sure you know the b3 resolves to 3 and pulls back to C, while the b5 resolves to 5 and pulls back to A.
"My whole life is a dark room...ONE BIG DARK ROOM" - a.f.i.