Also @abiky, I'd suggest you test the function on a regular computer to check you can set it up correctly.
Of course. I'm building up a desktop PC in order to use it as a mining rig (with multiple GPUs) as well as to use it for experimenting with this stuff. I wouldn't risk doing it with my laptop since it tends to overheat very quickly and thus reduce the lifespan out of it. Once I get a desired result, I would be ready to implement it into my nice little Raspberry Pi setup.
Well, mining could get worse day by day when the difficulty increases, making mining a block even difficult than it was before, thus forcing you to upgrade to a better ASIC miner with a bigger hashrate (or in the case of hard drives, bigger capacity). With this in mind, you might never profit but it could be seen as a fun way of learning (and more of like a hobby)
One good coin that I have seen that you can mine with your computer's CPU is called Coin Magi. This one is both mineable, as well as stakeable in which you can earn coins by just holding them into your wallet long term! Check it out here: http://coinmagi.org/