Yes, is the short answer - Line of Duty does take its cue from real-life cases and scenarios, however, the show is ultimately fictional. The characters and the force are all fictitious but the series does strive to achieve factual accuracy as closely as it can.