Nope, they're not the same. Jailbreaking allows you to bypass Apple's restrictions to customize your device and install unauthorized apps. Unlocking, on the other hand, means freeing your phone to use it with different carriers. Two different ball games.