Does a cold frame need to be in the sun?
The whole idea behind cold frames is that they offer ideal growing conditions by capturing the heat of the sun. So yes, cold frames should be placed where they have maximum exposure to sunlight.
In the UK, this means placing the sloping top of your garden cold frame so that it faces south. If this is not possible, southeast, or southwest or good alternative positions.