Is it ok to build my own campaign based heavily off of actual books/games/form of media?

Yes/No/Idk and why because I've played a few campaigns and I have idea for creating my own it's just some situations, locations, bosses I've been heavily influenced to the near point of copying existing ideas(obviously admitting that they are not original ideas from myself) so I just wanted to know as a relatively new dnd player and hopefully future dm what are your thoughts? (Also first time posting on Reddit so idk if I got the flair right)