You can combine them into one command:
$ mkdir dir_name && cd dir_name
Please note that the second half will only work if the first half is successful. That is, if your directory already exists, it will not change directories.
If you want to change the directory independently, use a semicolon instead:
$ mkdir dir_name; cd dir_name
source
share