Yes. Typically, the second 'if' would be replaced by 'had I'.