Using OEM firmware - no.
Using 3rd party firmware, because they periodically mine to a DEV fee pool -- maybe.
Any particular reason you are asking these security-related questions? Are you mining in a country where it is illegal? If you are - BAD idea!