Please excuse my total ignorance in this matter but is there a process to ensure that a camera and lens are working to their optimum ability ?

I suppose what I am asking is when I am using a particular lens should I have done some basic electronic or manual checks to make sure that focus etc is as sharp as can be expected.

Many thanks