Can Magician use swapping card ability before taking an action?

By wing2040, in Citadels

I'm looking at the rule book, it said:

Take an Action: At the beginning of your turn, you must do one of the following:


However, in Magician description:

At any time during your turn, you have one of two options:


So, can Magician use swapping card ability before taking an action?

Yes, I'd say so.