I updated my own theme’s code and css

This is a good use case for a local development environment. But, yes, if all you did was change files in the theme, then nothing that was saved to your database will be altered. If you are worried about things breaking, then I suggest getting a local copy of your WP install running and test things out there before pushing anything to your live site.