Yeah, it's the same pitch--but we did have a lengthy discussion on another thread about whether or how much it mattered how it was notated. I'm in the camp that holds the notation should follow function, in general.
For instance, if you had a maj7#11 chord (think of it as a B minor triad stacked on a C major triad), it would have an F#. But a C dim7 chord would have a Gb. If you arpeggiate those chords on your bass, the difference in tone color is noticeable, and you can easily imagine how they would function differently in chord progressions.
But that's more a matter of chord voicing than it is the actual F#/Gb note itself isn't it?
When you start a progression, your brain processes and anticipates the next notes in the sequence. If you go outside what's anticipated at a certain point in the stack or sequence, that's what constitutes the perceived unique character of a chord's voicing AFAIK. The F#/Gb is still the same note. But it's positional relationship to the other notes in the chord or sequence can (and does) vary.
With music it's often far less about frequency and duration and more about perception (as it relates to neuropsychology) than most people realize. Because sounds are just sounds. It's we who decide if they constitute music or noise. And if they're what we call music, whether they "make sense" and are "correct" or not.