Would the last episode of season 4 of your little pony friendship is magic be connected to My Little Pony Equestria Girls Rainbow Rocks?

Probably not. It has been said by the production team of Equestria Girls that Equestria Girls was meant to be a standalone, and not be connected to the TV show My Little Pony: Friendship is Magic.