The process in which cellular structures, including whole cells or cell parts, are generated and organized.