Yes, conftest.py is a file read by pytest that executes test-specific things, such as fixtures, while the config.py file stores application-specific things, such as the project environment.
Maybe you could squeeze everything into one file, but I wouldn't recommend that for better readability.