Can a Macbook Pro KB be programmed with a layers like a Pok3r?

I haven’t tried this specifically, but the Mac app Karabiner can probably handle that. I know it has a number of complex options for using the caps lock key, such as changing it to control when you press it in combination with other keys, and using it as escape when pressed alone.