I was watching my preseason game when this play occurred
https://usflwfl.myfootballnow.com/watch/5793#1052154. Jeffrey Dahmer is a SLB yet he was lined up on the defensive line. The play call was 4-3 Under Wide Line, and it calls for the SLB to basically be a 5th DL.
I'm not even attempting to restrict which plays get called, so if a defensive alignment calls for a LB to be on the line, it's legal.