Yes, one way is to straighten your legs up, and lift the tallest leg up 90 degrees and point to the ceiling. At this time, the other leg is flat on the mattress, so step on it.
Another way is to pedal with your thighs against your abdomen. At the highest, one leg points 90 degrees to the ceiling and the other leg bends to the abdomen.