Yes, but you need to consider how much cornstarch to replace one egg yolk. As a general rule of thumb, one egg is equivalent to two tablespoons of cornstarch mixed with three tablespoons of water.