Home can you wear shorts to temple

can you wear shorts to temple