In general, yes Physical objects like brick or glass provide total cover and you cannot target through total cover. However, a Wall of Fire does not provide total cover and targets on the other side are valid targets. Basically, if you could hit the target with an arrow you can target it with a spell.