In theory would be possible, but in practice it's way too slow. However, a nice exercise to understand how mining works: