Sure! Both of those are very suitable above-the-knee summer dresses and absolutely fine on a bike.
Below the knee, or full-length, and you start to have problems. Nice to have the option of an enclosed space if you’re going somewhere where the clothes matter.