Dirty contacts can certainly lead to a malfunctioning camera so should clean the contacts.
However, IMHO, if it was only a lens contact problem it is unlikely that the camera will switch on after reinserting the battery - so if cleaning the contacts doesn't work, try using a different battery.