Haven't tested it out but in theory it should work just fine programmatically if you assign a physical material and NOT a shader graph material (which is sometimes referred to interchangeably in the docs as MaterialX.)
Topic:
Spatial Computing
SubTopic:
General