If people use a writing prompt they find on the internet, can their book they wrote based off of it be published?

If so, how would you be going about to dedicating it to the website (if you found a specific one) or the internet (because it doesn't include it)?
4 answers 4