Development is a vast field and needs proper understanding. You can’t progress with a command without knowing if it is possible to create it or not. This is why it is best to determine if a current user is able to create records for an object in Apex beforehand.
Some people may not know how to do this, but it is pretty straight forward. You can find out whether the user can create records or not by simply using the is creatable () method. This will help determine the access and permissions of the current user allowing you to find out if such a manipulation is possible or not.