Of course, but consider substituting something else crunchy in its place. I prefer onions to pickles, so I only use onion. The point of this ingredient is to give the sandwich some texture. Iceberg or Romaine lettuce will help do the same here, if you’d rather not use raw onions or pickles.