Not necessarily. In a learning system, you’re not going to specify the exact filter. The filters will be learned through training. If an edge detector helps to minimize the cost, then a filter that happens to detect edges will be learned.
Training includes both the weight values for the filter and a bias value that compensates for any offsets.
Also keep in mind that the filters used in the quiz are just simple examples, and aren’t completely implemented systems.