power supply to arduino nano

After some research I found about switching voltage regulators. So can I use a 12v li ion battery connected to Arduino and use 6v switching voltage regulator for servo motor?