You can, but you won't get the same results. Whole cumin seeds add a bit of texture and have a slightly different flavor from ground cumin. They make a wonderful addition to lots of curries, so it's worth making a trip to the Indian market to pick some up!