It is quite possible, indeed.
Step 1, create the material:
[SPOILER]
http://image.prntscr.com/image/5d144763d142419d81aea47fb239c7f1.png
[/SPOILER]
Step 2, add some nodes:
[SPOILER]
http://image.prntscr.com/image/740e65fcd43249c0b574d9071ff8024f.png
[/SPOILER]