No, alliteration does not have to rhyme, and often it should not. Having to rhyme both the beginning and ends of your words would make your text unnecessarily bulky, and proper rhymes and alliterations serve similar but distinctly different functions in a text. Both are aesthetic, but they give off a different context.