Yes, but it is strongly discouraged.
A cash advance on a credit card is not subject to any grace period; interest is charged starting from the same day of the withdrawal, in addition to an immediate cash advance fee ranging between 2% and 5% of the withdrawn amount, with a minimum fee.