Cross-schema Foreign Keys
Yes, you just need to specify the schema before the table name. For example, if the referencing table is in schema qa and the referenced table in xx:

ALTER TABLE qa.test_results 
    ADD COLUMN file INTEGER,
    ADD FOREIGN KEY (file) REFERENCES xx.files (file) ;


Then all of your queries will also need to be formatted using schema.table