It will function but the coax cable is just a hair shorter on the 5th gen. You will be unable to screw it into place but can make it work in a pinch.
open