Hi astroquavo ,
Yes, you can use that demo to manually change focus at runtime from host, or use code below to set it at initialization:
pipeline = dai.Pipeline()
rgbCam = pipeline.create(dai.node.ColorCamera)
rgbCam.initialControl.setManualFocus(100) # 0..255
Thanks, Erik