Yes, you can turn off your iPhone without using the buttons by going to Settings -> General -> Shut Down and dragging the shutdown slider.