Custom post taxonomies as tax_query terms?

There is an example of how to do this on the official doc for WP_Query:

https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters

Specifically, by declaring multiple items in the tax_query and setting their relation:

Display posts that are in the quotes category OR have the quote post format:

$args = array(
    'post_type' => 'post',
    'tax_query' => array(
        'relation' => 'OR',
        array(
            'taxonomy' => 'category',
            'field'    => 'slug',
            'terms'    => array( 'quotes' ),
        ),
        array(
            'taxonomy' => 'post_format',
            'field'    => 'slug',
            'terms'    => array( 'post-format-quote' ),
        ),
    ),
);
$query = new WP_Query( $args );