Certainly seems like it's possible, at least to make packages from source according to
this
Only thing you'll have to worry about is the dependencies. If it requires more than what's in the temporary tools environment in the LFS book, make sure you add what you need.