High powered advertising shops can produce new material and turn on a dime. Rapid production to capture, match, and engage trends is their business, and some of them do it very well.
That said yes, it could be the case that Apple ordered a whole series of candidate-based ads back in the summer. It could also be that this ad is not, in any way, connected with the election at all and could be one in a series of broad-appeals ads that will cover numerous topics.
In other words, the son could still be getting his first dress.