F/8 is f/8 is f/8, regardless of the lens, focal length, manufacturer, format, race, creed, religion, national origin.......
But there's nothing magic about f/8...
Sparky hit the nail on the head. f8 is f8. F8 will get you a reasonable depth of field for most subjects, and be reasonably sharp. But you have to know what other compromise settings that need be made and what the tradeoffs are.
But beyond that, the first rule of photography is 'there are no absolute rules'. There's 'rule of thumb', 'rule of thirds', 'rule of <whatever>' ad nauseum'. They are all merely starting points, not solutions. As several have responded previously, most (but not all) lenses are sharpest somewhere near the midpoint of their aperture range. Using f8 will often be very near the sharpest aperture for many lenses...but some, f4 or 5.6 or ... Even reading MTF charts until you are blue in the face for a particular model lens may not accurately reflect the copy of that lens you have on your camera. Anything mass produced is always subject to some variations. Lenses and cameras are no different.
While having a starting point is always useful, knowing where to go from there to get what you want is far more important. That's why I love digital photography vs 40 years or so of shooting film that I did previously. Instant results. I can see what I got, and if needed, make some adjustments and shoot again. As someone on this forum mentioned several months ago, photography is the process of making 'an acceptable compromise' between each part of the exposure triangle and the resultant benefits and losses of each adjustment. Oftentimes, there are multiple combinations of aperture, shutter speed and ISO that will result in a proper exposure. The difference in results can be quite dramatic between wide open aperture at f1.8 vs f22, for example, or 1/10th sec vs 1/1000th shutter speed. KNOWING what the effects of each setting increase/decrease is the whole basis of producing good pictures in just about any lighting situation. Some lenses are incredibly sharp wide open at f2...but most are not. At f2, the depth of field is often exceedingly thin for close in subjects. If highly out of focus background (even an inch or two from the subject) is not what you want, then f2 is not the setting you want.
It's all about knowing the exposure triangle to the point you need not have to consciously think in specific settings, it becomes automatic. I typically think only in terms of faster/slower (to 'freeze' the subject or not) or wider/narrower (DOF), from some starting point and make my settings from there. That starting point may simply be whatever the previous frames were shot at. It may be the result of putting the camera in "A" mode and see what the camera decided it wanted. Needless to say, I'm the kind that doesn't follow any 'rules', per se. I simply start somewhere and go from there with whatever lighting I am dealing with.