Movement of the subject during MRI acquisition causes image quality degradation. In this study we adopted a deep CNN to correct motion-corrupted brain images. To get paired training datasets, synthetic motion artifacts were added by simulating k-space data along different sampling trajectories. Quantitative evaluation showed that the CNN significantly improved the image quality. The spiral trajectory performed better than the Cartesian trajectory both before and after the motion deblurring. A network trained with an L1 loss function achieved better RMSE and SSIM than one trained with an L2 loss function after convergence. Overall, deep learning yields rapid and flexible motion compensation.