I've done this before in a few laptops including a MacBook Pro. It works fine using the appropriate drive caddy. The only issue could be if the laptop has a badly designed bios that won't let you boot from a drive in the optical bay but I've never seen this happen. The only thing to bear in mind is that your optical bay may not have the same level of shock/vibration protection as your main drive bay.