Yes you can!

To set infinite resistance (Open Circuit), use "inf" or "-inf" as the resistance input.