Speaker on when headset plugged in
Yes indeed it is possible. Turn off the silent mode of your iPhone (toggle on the left) then set your ringtone to be audible and voilà! Your iPhone will ring even with the earphones plugged in.