Yes, definitely. Recently it's happened to me in a slightly roundabout way with some characters I thought of which include siblings called
Sebastian and
Viola (named after the twins from Twelfth Night, naturally). I never cared much for
Viola as a name, but the fictional
Viola in my head (named after Shakespeare's
Viola, a character I also admire very much) made the name grow on me immensely in a very short span of time.
masculine list:
https://www.behindthename.com/pnl/191050/124079feminine list:
https://www.behindthename.com/pnl/191050/124080