Yes.
The 235/45-17 tire has a diameter of 25.33". The 245/45 tire has a diameter of 25.68" thus a differential of 0.35". This increase in diameter will only slightly, if not insignificantly, change the speedometer readings, i.e. you will be traveling at a higher velocity than indicated on the speedometer. Theoretically speaking. But since the speedometer reading is already optimistic by approximately 2 mph, that new diameter should put you at an accurate speed.
Width-wise there is ample room to accommodate the additional 0.197” decrease in clearance space between the original tire and the strut.
However the 245/40-17 tire fitted on an 8” rim is the reasonable maximum width for that rim. The optimum rim width is 8.5”. So if you install the 245 tire on an 8” rim you may experience some wear in the center of the tire especially at track pressures, say above 40 psi. On the other hand, if you are thinking of lowering the pressure for the street to say at 35 psi or lower, you may damage the rim, especially if you live in an area with ill-maintained pavement.
The bottom line is that is the 245/45-17 is tire size that I will purchase once I use up the Dunlops at couple of driving schools. Go for it.