Yes, you will get the miles, although it may not be apparent whether you're on a Saver or Flex fare without a bit of digging.
Lastminute (in the UK at least) have an option to select a program and enter a FF number during the booking process.
Expedia and Opodo also have this option.