Bonus action Requirements

So I am a rogue who chose the archetype arcane trickster which, means I can cast spells. Is it possible to do a normal range or close range attack for my mean action, and as a bonus action cast a spell which requires one action. for example (Chill touch or firebot)