Yes, in most cases. You retain full copyright ownership of your photos if you sell them online. When you sell photos online, you are not selling the copyright to those images.  Instead, you are offering the license to use your images under the terms and conditions that have been agreed upon.