Yes, you can unlock your iPhone with a cracked screen by using iTunes or iCloud. However, if you use Recovery Mode, you may encounter some issues because the touchscreen may not work properly.