Moving into cover requires your movement action. You can’t attack and take cover in the same round unless you have an ability that says otherwise.