No, but you might have to bake it for a different length of time. A deeper dish may bake a little slower than a shallow dish, so you will have to keep an eye on it when cooking.  You may need more crumbs for the topping if the top surface is larger. Make sure the entire top of the casserole has a nice, thin layer of cornflake crumbs on it.