Possible, yeah, but not ideal. I am not a master on the topic, but I think mining requires a powerful computer which works 24/7. The cost of the equipment + electricity cost is greater than the one you'd be mining using a regular desktop.
(I once asked if I could mine using a laptop - no. Not ideal. Mining will burn the laptop + it will cost electricity)