Indeed laptop or pc can be used to mine bitcoin, but what you earn is not worth with the risk. if you intend to mine bitcoin, I suggest to buy mining hardware than you are using this way or investing in cloud mining because the both ways that i mentioned will never give a profit.