You can insert any sample into AFP
https://lmms.io/wiki/index.php?title=AudioFileProcessor
-and if you have a capable midi-HW-keyboard, you can play that sample in the sample-pitch by pressing the key that correspond to A4.
I however think you want to use one sample as if you had re-sampled the sound over your keyboard, and that is not possible. Here you do need a soft-resampler, and afaik there is non that works in lmms, and i have been looking for it! Believe me!