I would like to know if I mine for a while and during that time no block is found, then when a block is found but I am not mining anymore do I get some percentage of the block reward?
Yes. Your share is based on how much total hash you have contributed to the block over the entire block time.