Can I treat two identical capacitors with capacitance \$C\$ in parallel as one capacitor with capacitance \$2C\$?
Can I treat two identical capacitors with capacitance C in parallel as one capacitor with capacitance 2C?

Yes.

Capacitances in parallel add.  There really isn't much more to say.