Hi,
Yes, you can redistribute the connected network(s) into OSPF and the loopback will be advertised with the actual subnet mask configured on the interface. You can use the 'redistribute-connected' command with a route-map to include the loopback and whatever connected interfaces you desire to advertise via OSPF.
HTH
Sundar