Yes, you can. Slice the squash in half and scoop out the seeds. Then coat with oil and roast the halves cut side down. This may take longer than roasting cubes.