No, you cannot rent out your entire 2-bedroom Flexi flat during the Minimum Occupation Period (MOP). However, you may rent out individual bedrooms during the MOP.
After fulfilling the MOP, you can rent out the whole flat, but if it is a Prime Location Public Housing (PLH) flat, you are not allowed to rent out the entire flat.