Green Zucchini plants growing Yellow Fruits

https://preview.redd.it/3u59i8sg08fe1.jpg?width=3072&format=pjpg&auto=webp&s=f7e5c47a5ef23291b276e0954a14ecc710d52d6f

So this is the only plant out of the four Zucchini plants which produced this yellow fruit they are smaller then the other Zucchini i have harvested. Was wondering if it's all right to eat and what caused it?