I do this from time to time. When I do both my pleco's and my corys go after it. Normally the cory's ignore the zucchini but they love their shrimp pellets. It is a very good way to make sure our pleco's get their protein.
I like that idea I’m gonna do it next time I drop some zucchini in the tanks... I agree the Cory’s go crazy for the pellets but kinda could care less about the veggies...