Correct way of adding taxonomy to a custom post type

I did some tests and it seems that we can use either one as long as the taxonomy or post type has been registered earlier in the script.